package com.keensense.vcm.model;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;

/**
 * @author lanjian
 * @date 2020/8/1
 */
@XmlRootElement(name = "response")
public class SearchSubscriptionResponse extends BaseResponse {


    private List<SubInfoList> subInfoList;

    @XmlElementWrapper(name = "subInfoList")
    @XmlElement(name = "subscriptionInfo")
    public List<SubInfoList> getSubInfoList() {
        return subInfoList;
    }

    public void setSubInfoList(List<SubInfoList> subInfoList) {
        this.subInfoList = subInfoList;
    }

    public static class SubInfoList {

        private CallbackUrl callbackUrl;

        private Integer dataFormat;

        private Integer dataType;

        private Integer imageMode;

        private String taskId;

        private String suspectId;

        private String userId;

        @XmlElement
        public CallbackUrl getCallbackUrl() {
            return callbackUrl;
        }

        public void setCallbackUrl(CallbackUrl callbackUrl) {
            this.callbackUrl = callbackUrl;
        }

        @XmlElement
        public Integer getDataFormat() {
            return dataFormat;
        }

        public void setDataFormat(Integer dataFormat) {
            this.dataFormat = dataFormat;
        }

        @XmlElement
        public Integer getDataType() {
            return dataType;
        }

        public void setDataType(Integer dataType) {
            this.dataType = dataType;
        }

        @XmlElement
        public Integer getImageMode() {
            return imageMode;
        }

        public void setImageMode(Integer imageMode) {
            this.imageMode = imageMode;
        }

        @XmlElement
        public String getSuspectId() {
            return suspectId;
        }

        public void setSuspectId(String suspectId) {
            this.suspectId = suspectId;
        }

        @XmlElement
        public String getTaskId() {
            return taskId;
        }

        public void setTaskId(String taskId) {
            this.taskId = taskId;
        }

        @XmlElement
        public String getUserId() {
            return userId;
        }

        public void setUserId(String userId) {
            this.userId = userId;
        }

    }

    public static class CallbackUrl {

        private String master;

        private String slave;

        @XmlElement
        public String getMaster() {
            return master;
        }

        public void setMaster(String master) {
            this.master = master;
        }

        @XmlElement
        public String getSlave() {
            return slave;
        }

        public void setSlave(String slave) {
            this.slave = slave;
        }
    }
}
